import { ref } from "vue";

export const dictSearchformInit: Record<string, any> = {
  businessId: undefined,
  dictName: "",
  dictType: "",
  flags: 0,
  remark: "",
};
export const dictTypeInit = [
  {
    label: "启用",
    value: 0,
    elTagType: "primary",
    elTagClass: "",
  },
  {
    label: "禁用",
    value: 1,
    elTagType: "danger",
    elTagClass: "",
  },
];
export const conditionCommon = {
  dictName: "",
  dictType: "",
  flags: "",
};

/********字典各项详情********/
export const dictItemInit = {
  dictType: "",
  businessId: undefined,
  dictLabel: "",
  dictKey: "",
  dictSort: 0,
  isDefault: 1,
  flags: 0,
  createTime: "",
  remark: "",
  cssClass: "",
  listClass: "default",
};
export const conditionDictItemCommon = {
  dictLabel: "",
  dictType: "",
  flags: "",
};
// 数据标签回显样式
export const listClassOptions = ref([
  { value: "default", label: "默认" },
  { value: "primary", label: "主要" },
  { value: "success", label: "成功" },
  { value: "info", label: "信息" },
  { value: "warning", label: "警告" },
  { value: "danger", label: "危险" },
]);

/**********菜单*********/
export const sysShowHideTypeInit = [
  {
    label: "显示",
    value: 0,
    elTagType: "primary",
    elTagClass: "",
  },
  {
    label: "隐藏",
    value: 1,
    elTagType: "danger",
    elTagClass: "",
  },
];
/****************性别****************************/
export const sexTypeInit = [
  {
    elTagClass: "",
    elTagType: "success",
    label: "男",
    value: "0",
  },
  {
    elTagClass: "",
    elTagType: "",
    label: "女",
    value: "1",
  },
  {
    elTagClass: "",
    elTagType: "",
    label: "未知",
    value: "2",
  },
];
